package com.hxkj.cst.chengshuitong.ui.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * 作者： Luoyang on 2017/5/25.
 * 描述：
 */
class MainViewPagerAdapter(fragmentManager: FragmentManager?,
                           var fragmentArray: ArrayList<Fragment>) : FragmentPagerAdapter(fragmentManager) {


    override fun getItem(p0: Int): Fragment = fragmentArray[p0]

    override fun getCount(): Int = fragmentArray.size

    override fun getPageTitle(position: Int): CharSequence {
        return position.toString()
    }
}